package com.erlinyou.im.model.offline;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import com.erlinyou.im.model.base.AbstractDO;

/**
 * 用于推送用户,离线消息
 * @author Administrator
 *
 */
@Entity
@Table(name = "toffline_message")
@IdClass(OfflineMessageKey.class)
public class OfflineMessage extends AbstractDO{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 消息ID
	 */
	@Id
	private String msgid;
	@Id
	private Long userid;
	@Column(columnDefinition="text")
	private String content;
	private Long ct;
	public String getMsgid() {
		return msgid;
	}
	public void setMsgid(String msgid) {
		this.msgid = msgid;
	}
	public Long getUserid() {
		return userid;
	}
	public void setUserid(Long userid) {
		this.userid = userid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Long getCt() {
		return ct;
	}
	public void setCt(Long ct) {
		this.ct = ct;
	}
	
	
}
